package org.jeecg.modules.ft.ftOrder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;

/**
 * @Description: 餐饮订单
 * @Author: jeecg-boot
 * @Date:   2021-01-11
 * @Version: V1.0
 */
@Data
@TableName("ft_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ft_order对象", description="餐饮订单")
public class FtOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**商家ID*/
	@Excel(name = "商家ID", width = 15)
    @ApiModelProperty(value = "商家ID")
    private java.lang.String tenantId;
    /**商家名称*/
    @Excel(name = "商家名称", width = 15,needMerge=true)
    @ApiModelProperty(value = "商家名称")
    private java.lang.String tenantName;
    /**商家地址*/
    @Excel(name = "商家地址", width = 15,needMerge=true)
    @ApiModelProperty(value = "商家地址")
    private java.lang.String tenantAddress;
	/**订单编码*/
	@Excel(name = "订单编码", width = 15,needMerge=true)
    @ApiModelProperty(value = "订单编码")
    private java.lang.String orderCode;
	/**用户openid*/
	@Excel(name = "用户openid", width = 15)
    @ApiModelProperty(value = "用户openid")
    private java.lang.String userOpenId;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15,needMerge=true)
    @ApiModelProperty(value = "客户名称")
    private java.lang.String userName;
	/**用户联系方式*/
	@Excel(name = "用户联系方式", width = 15,needMerge=true)
    @ApiModelProperty(value = "用户联系方式")
    private java.lang.String userPhone;
	/**订单金额*/
	@Excel(name = "订单金额", width = 15,needMerge=true)
    @ApiModelProperty(value = "订单金额")
    private java.lang.Double orderMoney;
	/**抵扣金额*/
	@Excel(name = "抵扣金额", width = 15)
    @ApiModelProperty(value = "抵扣金额")
    private java.lang.Double discountMoney;
	/**支付金额*/
	@Excel(name = "支付金额", width = 15,needMerge=true)
    @ApiModelProperty(value = "支付金额")
    private java.lang.Double payMoney;
	/**支付状态*/
	@Excel(name = "支付状态", width = 15)
    @ApiModelProperty(value = "支付状态")
    private java.lang.Integer payStatus;
	/**商家金额*/
	@Excel(name = "商家金额", width = 15)
    @ApiModelProperty(value = "商家金额")
    private java.lang.Double businessMoney;
	/**快递金额*/
	@Excel(name = "快递金额", width = 15)
    @ApiModelProperty(value = "快递金额")
    private java.lang.Double expressMoney;
	/**平台金额*/
	@Excel(name = "平台金额", width = 15)
    @ApiModelProperty(value = "平台金额")
    private java.lang.Double platformMoney;
	/**红包ID*/
	@Excel(name = "红包ID", width = 15)
    @ApiModelProperty(value = "红包ID")
    private java.lang.String envelopeDetailId;
	/**红包金额*/
	@Excel(name = "红包金额", width = 15)
    @ApiModelProperty(value = "红包金额")
    private java.lang.Double envelopeDetailMoney;
	/**时段ID*/
	@Excel(name = "时段ID", width = 15)
    @ApiModelProperty(value = "时段ID")
    private java.lang.String timeSlotId;
	/**送餐时间*/
	@Excel(name = "送餐时间", width = 15, format = "yyyy-MM-dd",needMerge=true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "送餐时间")
    private java.util.Date timeSlot;
	/**收货地址*/
	@Excel(name = "收货地址", width = 15,needMerge=true)
    @ApiModelProperty(value = "收货地址")
    private java.lang.String giveAddress;
	/**楼栋*/
	@Excel(name = "楼栋", width = 15,needMerge=true)
    @ApiModelProperty(value = "楼栋")
    private java.lang.String build;
    /**楼栋ID*/
    @Excel(name = "楼栋ID", width = 15)
    @ApiModelProperty(value = "楼栋ID")
    private java.lang.String buildId;
    /**所属学校ID*/
    @Excel(name = "所属学校ID", width = 15)
    @ApiModelProperty(value = "所属学校ID")
    private java.lang.String schoolId;
    /**所属学校*/
    @Excel(name = "所属学校", width = 15,needMerge=true)
    @ApiModelProperty(value = "所属学校")
    private java.lang.String school;
}
